<?php

namespace common\modules\upload\controllers\frontend;

use common\actions\UploadAction;
use common\components\Controller;
use Yii;

/**
 * Class UploadController
 *
 * @package common\modules\upload\controllers\frontend
 */
class IndexController extends Controller
{

    /**
     * @var string
     */
    public $uploadDir = '@frontend/web/uploads/';

    /**
     * @var string
     */
    public $uploadUrl = '/uploads/';

    /**
     * {@inheritdoc}
     */
    public function actions()
    {
        return [
            'index' => [
                'class' => UploadAction::className(),
                'path' => Yii::$app->params['uploadCommonPath'],
            ]
        ];
    }
}
